<?php 
header("Content-Type: text/html; charset=UTF-8");
session_start();

$temp=$_GET['temp'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>gd</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {
	color: #FAFBFD;
	font-weight: bold;
}
.style11 {	COLOR: #000000
}
body {
	margin-left: 0px;
	margin-top: 0px;
}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkfile(){
	if(document.addFile.UploadFile.value==""){
		alert("请选择要上传的会议附件！");
		document.addFile.UploadFile.focus();
		return false;
	}
	return true;
}

function uploadfile()
{
	var filename = document.addFile.UploadFile.value;
	//alert(filename);
	//var exts = filename.substr(filename.length-3,3).toLowerCase();
	/*if(exts=='exe'){
	  alert("不能上传可执行文件");
	}else{}*/
	  document.addFile.submit();
	
}
//-->
</script>
<style type="text/css">
<!--
body {
	background-color: #E7F2F5;
	margin-right: 0px;
}
-->
</style>
</head>
<body>
<form name="addFile" action="upfile_subdo.php" method="post" enctype="multipart/form-data" onsubmit="return checkfile();">
<input name="UploadFile" type="file" contenteditable="false"  onPropertyChange="uploadfile();"/>
<input type="hidden" name="temp" value="<?=$temp?>" /><input type="hidden" name="userID" value="<?=$myid?>" /></td>
</form>		
 </body>
</html>
